package com.lenovo.framework.entity;

import java.util.Date;

/**
 * accesstoken is a holder to record token, refreshtoken, expiredtime and so on.
 * @author hejie5
 * @version 1.0
 * @updated 16-2月-2016 15:26:37
 */
public class AccessToken {

    private String token;

    private Date expiretime;

    private String refreshtoken;

    public String getToken() {
        return token;
    }


    public String getRefreshtoken() {
        return refreshtoken;
    }

    public void setToken(String token) {
        this.token = token;
    }


    public void setRefreshtoken(String refreshtoken) {
        this.refreshtoken = refreshtoken;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

    @Override
    public String toString() {
        return "AccessToken{" +
                "token='" + token + '\'' +
                ", expiretime=" + expiretime +
                ", refreshtoken='" + refreshtoken + '\'' +
                '}';
    }
}
